#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QDockWidget>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QDockWidget*dockwidget=new QDockWidget("浮动窗口",this);
//    dockwidget->move(200,200);
//    dockwidget->resize(100,200);

    addDockWidget(Qt::BottomDockWidgetArea,dockwidget);
    dockwidget->setAllowedAreas(Qt::LeftDockWidgetArea|Qt::RightDockWidgetArea);


}

MainWindow::~MainWindow()
{
    delete ui;
}

